// ignore_for_file: use_super_parameters, prefer_const_constructors

import 'package:flutter/material.dart';

class HomeSearch extends StatelessWidget {
  const HomeSearch({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
        height: 50,
        padding: EdgeInsets.all(10),
        color: Colors.grey[200],
        child: GestureDetector(
          onTap: () {
            Navigator.pushNamed(context, '/detail');
          },
          child: Container(
              padding: const EdgeInsets.only(left: 10),
              decoration: BoxDecoration(
                borderRadius: BorderRadius.circular(15),
                color: Colors.white,
              ),
              child: Row(
                children: const [
                  Icon(
                    Icons.search,
                    color: Colors.grey,
                  ),
                  Text(
                    '搜索您要找的商品',
                    style: TextStyle(color: Colors.grey, fontSize: 13),
                  )
                ],
              )),
        ));
  }
}
